package com.ifnk.portaljava.dapWeb.dao;

import com.ifnk.portaljava.dapWeb.pojo.Location;

import java.util.List;

public interface LocationDao {
	
//	public Location findByLocationId(int locationId);
	
	//location到哪一级就根据哪一级查询
	public List<Location> findByLocation(Location location);
	
	//添加Location，此时没有id，只有要添加的内容
	public void insertLocation(Location location);
	//参数的id为原来的id，内容为新内容
	public void updateLocation(Location location);
	//删除Location根据id即可,该操作会删除所有与该location相关的user和server
	public void deleteByLocationId(int locationId);

	public Location findLocationById(int id);

	public List<Location> checkLocation(Location location);
	
	
}
